<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加轮播图</title>
    <!--jquery-->
    <script src="/jquery/jquery-3.2.1.min.js"></script>
    <!--layui-->
    <script src="/layui/layui.js"></script>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <!--css工具包-->
    <link rel="stylesheet" href="/css/tool/zhaoTool.css">
    <!--本体css-->
    <link rel="stylesheet" href="/css/advertisement/rotationChart/rotationChart-list-add.css">
</head>
<body style="background-color: #F9F9F9">
<!--返回刷新---------------------------------------------------------------------->
<div class="min" style="width: 96%;margin-left: 3%;height: 50px;background-color: #F1F1F1;border: #E6E6E6 1px solid;">
    <div class="left-float">
        <div style="width: 5px;height: 40px;background-color: #0DAB9E;margin-top: 5px" class="left-float"></div>
        <p class="left-float" style="line-height: 49px"><strong>添加轮播图</strong></p>
    </div>
    <div class="right-float" style="margin-top: 5px;margin-right: 5px">
        <button type="button" class="layui-btn" onclick="refresh()"><i class="layui-icon layui-icon-refresh"></i>刷新</button>
        <button type="button" class="layui-btn" onclick="backOff()"><i class="layui-icon layui-icon-return"></i>返回</button>
    </div>
</div>
<div style="margin-left: 40%">
    <form class="layui-form">
        <div class="layui-form-item" style="margin-top: 20px">
            <label class="layui-form-label">轮播图名称:</label>
            <div class="layui-input-inline">
                <input name="bannerName" type="text" class="layui-input" lay-verify="required">
            </div>
        </div>
        <div class="layui-form-item" style="margin-top: 20px">
            <label class="layui-form-label">轮播图类型:</label>
            <div class="layui-input-inline">
                <select name="imgType" class="layui-select" lay-verify="required">
                    <option value=""></option>
                    <option value="2">商品</option>
                    <option value="3">视频</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">开始时间:</label>
            <div class="layui-input-inline">
                <input name="startDate" id="startDate" class="layui-input" lay-verify="date">
            </div>
        </div>
        <div class="layui-form-item" style="margin-top: 20px">
            <label class="layui-form-label">结束时间:</label>
            <div class="layui-input-inline">
                <input name="expireDate" id="expireDate" class="layui-input" lay-verify="date">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">上线/下线:</label>
            <div class="layui-input-inline">
                <input type="radio" name="display" value="2" title="上线" checked>
                <input type="radio" name="display" value="3" title="下线">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-inline">
                <button type="button" id="uploadImg" class="layui-btn" style="width: 200px;">上传图片</button>
            </div>
        </div>
        <div class="layui-form-item" id="disImg"  style="display: none">
            <label class="layui-form-label">广告图:</label>
            <div class="layui-input-inline">
                <img id="imgAddress" src="" style="width: 200px;height: 200px;">
                <input type="hidden" name="imgAddress">
            </div>
        </div>
        <div class="layui-form-item" style="margin-top: 20px">
            <label class="layui-form-label">备注:</label>
            <div class="layui-input-inline">
                <textarea name="remarks" class="layui-textarea" lay-verify="required"></textarea>
            </div>
        </div>
        <div class="layui-form-item" style="margin-top: 20px">
            <label class="layui-form-label"></label>
            <div class="layui-input-inline">
                <button type="button" lay-submit lay-filter="sub" class="layui-btn" style="width: 200px;">提交</button>
            </div>
        </div>
        <input type="hidden" name="imgAddress">
        <input type="hidden" name="createId" value="zzq">
        <input type="hidden" name="updateDate">
        <input type="hidden" name="imgTitle" value="轮播">

    </form>
</div>
</body>
<script src="/js/advertisement/rotationChart/rotationChart-list-add.js"></script>
</html>